import { lazy } from "react";
import * as Type from "../utils/index";
// import {
//   DesktopOutlined,
//   FileOutlined,
//   PieChartOutlined,
//   TeamOutlined,
//   UserOutlined,
// } from "@ant-design/icons";

export const menuRouter: Type.RouterList = [
  {
    path: "/home/index",
    element: lazy(() => import("../page/home/selectRecomend/index")),
    title: "首页推荐",
  },
  {
    path: "/home/workbench",
    element: lazy(() => import("../page/home/workBench/index")),
    title: "工作台",
  },
  {
    path: "/home/createDesign",
    element: lazy(() => import("../page/home/createDesign/index")),
    title: "创建设计",
  },
];

const routes: Type.RouterList = [
  {
    path: "/",
    to: "/home/index",
  },
  {
    path: "*",
    element: lazy(() => import("../page/Error")),
  },
  {
    path: "/home",
    element: lazy(() => import("../page/index")),
    children: menuRouter,
  },
];

export default routes;
